package com.brilliance.project.webapp.form;

public class PropertyForm extends BaseForm {

	private static final long serialVersionUID = 1L;

	private String propKey = null;
	private String propValue = null;

	public PropertyForm() {
	}

	public PropertyForm(String propKey, String propValue) {
		this.propKey = propKey;
		this.propValue = propValue;
	}

	public String getPropKey() {
		return propKey;
	}

	public void setPropKey(String propKey) {
		this.propKey = propKey;
	}

	public String getPropValue() {
		return propValue;
	}

	public void setPropValue(String propValue) {
		this.propValue = propValue;
	}

	@Override
	public boolean equals(Object obj) {
		if (null == obj) {
			return false;
		}
		if (obj instanceof PropertyForm) {
			PropertyForm pro = (PropertyForm) obj;
			if (this.propKey.equals(pro.getPropKey())) {
				return true;
			}
			if (this == pro) {
				return true;
			}
			return false;
		} else {
			return false;
		}

	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return super.hashCode();
	}

}
